import akshare as ak

# 获取主力连续合约列表
# futures_zh_realtime_df = ak.futures_display_main_sina()
# print(futures_zh_realtime_df)
# 可以将数据保存为CSV文件
# futures_zh_realtime_df.to_csv("主力合约列表.csv", index=False)
# print("数据已保存到 glass_futures_index_last_10_days.csv 文件")

# 获取主力合约历史行情数据
# futures_main_sina_hist = ak.futures_main_sina(symbol="V0", start_date="20250601", end_date="20250630")
# print(futures_main_sina_hist)

# 查看所有以 futures 开头的函数
functions = [func for func in dir(ak) if func.startswith('futures')]
print(functions)

# futures_hist_em_df = ak.futures_hist_em(symbol="热卷主连", period="daily")
# print(futures_hist_em_df)